import request from "./request";

const baseURL = '/sub'

//
const getDetail = (params) => {
  return request.doRequest(`${baseURL}/getDetail`, {params: params})
};
const getSeasons = (params) => {
  return request.doRequest(`${baseURL}/getSeasons`, {params: params})
};
const doSub = (form) => {
  return request.doRequest(`${baseURL}/do`, {method:'POST', data:form})
};

const action = (id) => {
  return request.doRequest(`${baseURL}/action`, {params: {id}})
}

const SubApi = {
  getDetail, getSeasons, doSub, action
};

export default SubApi;
